package com.gitee.kenewstar.utils;



/**
 * 对象工具
 * @author kenewstar
 * @date 2022/2/22
 */
public abstract class ObjectUtil {

	public static <T> T createObj(Class<T> clz) {
		AssertUtil.notNull(clz);

		T target = null;
		try {
			target = clz.getConstructor().newInstance();
		} catch (Exception e) {
			AssertUtil.throwException("create object failed...", e);
		}
		return target;
	}




}
